package com.chaochis.wind.config.security_config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.cors.CorsConfiguration;

import java.util.Collections;
import java.util.List;

@Data
@Configuration
@ConfigurationProperties(prefix = "wind.security")
public class SecurityProperties {
  private boolean enable = true; //是否开启权限过滤
  private String loginUrl = "/admin/account/login"; // 登录地址
  private List<String> urlPatterns = Collections.singletonList(null);//允许访问的源
  private List<String> ignoredUrl = Collections.singletonList(null);//允许访问的源
}
